package com.imay.live.view;

import android.text.TextPaint;
import android.text.style.ClickableSpan;

/**
 * Created by jeaman on 2017/4/5.
 */

public abstract class NoUnderlineClickableSpan extends ClickableSpan {
    private int mColor;

    public NoUnderlineClickableSpan(int color) {
        mColor = color;
    }

    @Override
    public void updateDrawState(TextPaint ds) {
        ds.setColor(mColor);
        ds.setUnderlineText(false);
    }
}
